#include "processbar.h"

void processbar()
{	
	char bar[NUM];
	memset(bar, '\0', sizeof(bar));
	int cnt = 0;
	while(cnt <= 100)
	{
		printf("[%-100s][%d%%]\r", bar, cnt);
		fflush(stdout);
		bar[cnt++] = STLYE;
		usleep(100000);		//微秒
	}
	printf("\n");
}
